package es.amh;



import com.google.gdata.client.calendar.CalendarService;
import com.google.gdata.client.contacts.ContactsService;


import es.amh.management.BirthdayManagement;
import es.amh.management.CalendarManagement;
import es.amh.management.ICalendarManagement;

public class CalendarMain {

	/**
	 * @param args
	 * @throws ServiceException
	 * @throws IOException
	 */

	public static CalendarService calendarService;
	public static ContactsService contactService;

	public static void main(String[] args) throws Exception {

//		//
//		if (args.length != 4) {
//			System.exit(-1);
//		}
//		String contactUser = args[0];
//		String contactPass = args[1];
//		String birthdayUser = args[2];
//		String birthdayPass = args[3];
//		BirthdayManagement bm = BirthdayManagement.getInstance();
//		bm.connectService(contactUser, contactPass);
//
//		ICalendarManagement cm = CalendarManagement.getInstance();
//		cm.connectService(birthdayUser, birthdayPass);
		int total = 912;
		for (int i = 0; i<total ; i++) {
			System.out.println(Math.round(((float)i/(float)total)*100));
		}

		// cm.deleteBirthdayCalendar();
		// List<BirthdayEntry> birthdays = bm.getListOfContact();
		// //
		// System.out.println(cm.commitBirthdays(birthdays) +
		// " birthdays were added");
		//
		// birthdays = bm.getListOfContact();
		//
		// System.out.println(cm.commitBirthdays(birthdays) +
		// " birthdays were added");
		// TE QUEDASTE CONSIGUIENDO TODAS LAS CITAS DEL CALENDARIO Y
		// RECONSTRULLENDO LOS CUMPLEAÑOS
		// DE MANERA QUE SABEMOS QUE EVENTOS ESTÁN COMMIT Y CUALES NO PARA ASÍ
		// PODER SUBIR SOLO LOS BUENOS

	}

}